Safe Search Google and Restricted Mode YouTube (MikroTik).


First you need to configure the device as a dns server in the DHCP server properties:

1
Ip > DHCP Server > Networks tab > open a/the default record.

Input the ip of router in DNS Servers field.

Set the router as a DNS

Force DNS requests to be resolved by the router:

1
2
/ip firewall nat
add action=redirect chain=dstnat dst-port=53 in-interface=bridge protocol=udp

in-interface= Equivalent to the user interface.



Allow remote requests to the dns.

1
/ip dns set allow-remote-requests=yes

Verify the ip of forcesafesearch.google.com

nslookup safeSearch

Assign the safesearch ip to google.

1
2
3
4
5
6
7
8
9
10
/ip dns static
add address=216.239.38.120 name=google.com comment="Secure Search"
add address=216.239.38.120 name=www.google.com comment="Secure Search"
add address=216.239.38.120 name=https://google.com comment="Secure Search"
add address=216.239.38.120 name=https://www.google.com comment="Secure Search"

add address=216.239.38.120 name=google.com.mx comment="Secure Search"
add address=216.239.38.120 name=www.google.com.mx comment="Secure Search"
add address=216.239.38.120 name=https://google.com.mx comment="Secure Search"
add address=216.239.38.120 name=https://www.google.com.mx comment="Secure Search"

Youtube

1
2
3
4
5
6
7
8
9
10
11
/ip dns static
add address=216.239.38.119 name=youtube.com comment="Restrict mode Youtube"
add address=216.239.38.119 name=www.youtube.com comment="Restrict mode Youtube"
add address=216.239.38.119 name=https://www.youtube.com comment="Restrict mode Youtube"
add address=216.239.38.119 name=m.youtube.com comment="Restrict mode Youtube"
add address=216.239.38.119 name=https://m.youtube.com comment="Restrict mode Youtube"
add address=216.239.38.119 name=youtubei.googleapis.com comment="Restrict mode Youtube"
add address=216.239.38.119 name=https://youtubei.googleapis.com comment="Restrict mode Youtube"
add address=216.239.38.119 name=youtube.googleapis.com comment="Restrict mode Youtube"
add address=216.239.38.119 name=https://youtube.googleapis.com comment="Restrict mode Youtube"
add address=216.239.38.119 name=www.youtube-nocookie.com comment="Restrict mode Youtube"

Check YouTube content restrictions on your network

Observations:

In the secure search is only active for google.com and google.com.mx if it is entered with google.cat the secure search is disabled, if you wish to add the whole list you can find it in other Google ccTLD country subdomains.

More information:

https://support.google.com/websearch/answer/510?co=GENIE.Platform%3DDesktop&hl=es-419

https://support.opendns.com/hc/en-us/articles/227986807-How-to-Enforcing-Google-SafeSearch-YouTube-and-Bing

https://blog.squidblacklist.org/?p=1282

https://forum.mikrotik.com/viewtopic.php?t=126974

https://support.google.com/websearch/answer/186669?hl=en

© 2020 Juvenal Yescas All Rights Reserved.
Theme by hiero